import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import './assets/icons'

import ElementUI, { Loading } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n

import '@/styles/index.scss' // global css
import 'material-design-icons-iconfont/dist/material-design-icons.css' // icon
import '@mdi/font/css/materialdesignicons.css'

import App from './App'
import router from './router'
import store from './store'

import '@/icons' // icon
import '@/permission' // permission control
import VueCoreVideoPlayer from 'vue-core-video-player'

import _vuetify from '@/plugins/vuetify' // path to vuetify export
import NewsCard from './views/components/NewsCard'
import '@/plugins/rem'
Vue.use(NewsCard)
Vue.use(ElementUI, { locale })
Vue.use(Loading.directive)
Vue.use(_vuetify)
Vue.use(VueCoreVideoPlayer)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  _vuetify,
  router,
  store,
  render: h => h(App)
})
